package com.lantosec.hmrp.modules.archives.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.archives.vo.UserTipOffVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 领导干部被举报控告情况表 实体类
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserTipOff extends BaseEntity<UserTipOffVO> {

    private static final long serialVersionUID = 1L;
    public UserTipOff(UserTipOffVO vo){
        this.userTipOffId = vo.getUserTipOffId();
        this.userId = vo.getUserId();
        this.tipOffDate = vo.getTipOffDate();
        this.tipOffUser = vo.getTipOffUser();
        this.tipOffType = vo.getTipOffType();
        this.tipOffEvent = vo.getTipOffEvent();
        this.disposeResult = vo.getDisposeResult();
        this.createId = vo.getCreateId();
        this.createUser = vo.getCreateUser();
        this.createTime = vo.getCreateTime();
        this.verifyId = vo.getVerifyId();
        this.verifyUser = vo.getVerifyUser();
        this.verifyTime = vo.getVerifyTime();
        this.verifyStatus = vo.getVerifyStatus();
    }

    @Override
    public UserTipOffVO convertToVO(){
        return new UserTipOffVO(this);
    }


    /**
     * 主键ID
     */
    @TableId(value = "user_tip_off_id", type = IdType.ASSIGN_UUID)
    private String userTipOffId;

    /**
     * 用户主表ID
     */
    private String userId;

    /**
     * 举报时间
     */
    private String tipOffDate;

    /**
     * 举报者
     */
    private String tipOffUser;

    /**
     * 举报方式
     */
    private String tipOffType;

    /**
     * 举报控告事件
     */
    private String tipOffEvent;

    /**
     * 处理结果
     */
    private String disposeResult;

    /**
     * 创建人ID
     */
    private String createId;

    /**
     * 创建人姓名
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 审核人ID
     */
    private String verifyId;

    /**
     * 审核人姓名
     */
    private String verifyUser;

    /**
     * 审核时间
     */
    private Date verifyTime;

    /**
     * 审核状态（0：未审核，1：以审核）
     */
    private Integer verifyStatus;


    public enum ColName {
        user_tip_off_id, user_id, tip_off_date, tip_off_user, tip_off_type, tip_off_event, dispose_result, create_id, create_user, create_time, verify_id, verify_user, verify_time, verify_status, 
    }
}
